cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(Tesi)

#SET(CMAKE_CXX_COMPILER g++)
#FIND_PACKAGE(OpenCV REQUIRED)
find_package(PCL 1.5 REQUIRED)
find_package(Qt4 4.7 REQUIRED)
find_package(VTK)
include(${VTK_USE_FILE})

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
SET(Tesi_SOURCES main.cpp keypoints.cpp functions.cpp load.cpp correspond.cpp features.cpp registration.cpp Alignment.cpp)
SET(Tesi_HEADERS keypoints.h functions.h load.h correspond.h features.h registration.h Alignment.h)

add_executable (Tesi ${Tesi_SOURCES} ${Tesi_HEADERS_MOC})
target_link_libraries (Tesi ${PCL_LIBRARIES})
#target_link_libraries (Tesi ${PCL_LIBRARIES} ${QT_LIBRARIES} QVTK vtkHybrid)
